package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.vo.PageBeanVo;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author zhuguo
 * @since 2022-11-10
 */
public interface OmsOrderService extends IService<OmsOrder> {
    PageBeanVo findByPage(String createTime, String orderSn, Integer orderType, Integer pageNum, Integer pageSize, String receiverKeyword, Integer sourceType, Integer status);

    Integer updateOrder(OmsOrder order);

    //根据订单id集合批量查询订单详情
    List<OmsOrder> findByIds(List<Long> ids);

    //根据订单id查询指定订单详情
    OmsOrder findById(Long id);

    //批量更新订单
    Integer updateOrderList(List<OmsOrder> orderList);
}
